package com.ruoyi.easyfame.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 需求查看记录对象 tb_demand_views
 * 
 * @author xhb
 * @date 2025-08-27
 */
public class DemandViews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 农户用户ID，对应 sys_user.user_id */
    @Excel(name = "农户用户ID，对应 sys_user.user_id")
    private Long farmerId;

    /** 需求ID */
    @Excel(name = "需求ID")
    private Long demandId;

    /** 查看时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "查看时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date viewedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setFarmerId(Long farmerId) 
    {
        this.farmerId = farmerId;
    }

    public Long getFarmerId() 
    {
        return farmerId;
    }

    public void setDemandId(Long demandId) 
    {
        this.demandId = demandId;
    }

    public Long getDemandId() 
    {
        return demandId;
    }

    public void setViewedAt(Date viewedAt) 
    {
        this.viewedAt = viewedAt;
    }

    public Date getViewedAt() 
    {
        return viewedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("farmerId", getFarmerId())
            .append("demandId", getDemandId())
            .append("viewedAt", getViewedAt())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
